// +----------------------------------------------------------------------
// | 麦沃德科技赋能开发者，助力中小企业发展 
// +----------------------------------------------------------------------
// | Copyright (c) 2017～2024  www.wdadmin.cn    All rights reserved.
// +----------------------------------------------------------------------
// | 沃德代驾系统并不是自由软件，不加密，并不代表开源，未经许可不可自由转售和商用
// +----------------------------------------------------------------------
// | Author: MY WORLD Team <bd@maiwd.cn>   www.wdadmin.cn
// +----------------------------------------------------------------------

import app from './modules/app'
import user from './modules/user'

var store = null
const storeData = {
	modules: {
		app,
		user,
	}
}

// #ifndef VUE3
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
store = new Vuex.Store(storeData)
// #endif

// #ifdef VUE3
import { createStore } from 'vuex'
store = createStore(storeData)
// #endif

export default store